<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        #test:hover {
            color: pink;
        }
        #test:active {
            color: red;
        }

        a {
            text-decoration: none;
            color: black;
            display: block;
        }
        a:link {
            font-size: 24px;
        }
        a:visited {
            font-size: 24px;
        }
        a:hover {
            font-size: 48px;
        }
        a:visited {
            /*visited中只有color,background-color,border-color有用*/
            font-size: 96px;
            color: pink;
        }
    </style>
</head>
<body>
    <div id="test">
        test
    </div>
    <hr/>
    <a href="#">lvha love hate</a>
    <a href="#">lvha love hate</a>
    <a href="#">lvha love hate</a>
    <a href="#">lvha love hate</a>
    <a href="#">lvha love hate</a>
</body>
</html>
